package com.kk.Exception;


import com.kk.Entry.R;
import org.springframework.web.bind.annotation.RestControllerAdvice;


@RestControllerAdvice
public class ExceptionHandler {
    @org.springframework.web.bind.annotation.ExceptionHandler(Exception.class)
    public R myException(Exception e) {
        e.printStackTrace();
        return R.fail("沉淀");
    }
}
